package com.weijianhuawen.wjblog.admin.mode.vo.wiki;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description:
 * @date: 2024-11-11 17:58
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "修改知识库基本信息请求实体")
public class UpdateWikiReqVo {
    @NotNull(message = "知识库id不能为空！")
    private Long id;
    @NotBlank(message = "知识库封面不能为空！")
    private String cover;
    @NotBlank(message = "知识库标题不能为空！")
    @Length(min = 1, max = 32, message = "知识库标题长度需要控制在32个字符以内！")
    private String title;
    @NotBlank(message = "知识库的摘要不能为空！")
    private String summary;
}
